/**
 * @author  ：fangjj 
 * @version ：2009-2-17 上午10:37:42
 */
package com.sendinfo.xspring.exception;
/**
 * @author 作者：fangjj E-mail:fangjianjiang725@163.com
 * @version 创建时间：2009-2-17 上午10:37:42
 * 类说明
 */
public final class XspringRuntimeException extends Exception {   
	  
    private static final long serialVersionUID = 1387623981549785491L;   
    private String code;   
  
    public XspringRuntimeException(XspringError error) {   
        super(error.getMessage());   
        this.code=error.getCode();   
    }   
  
    public XspringRuntimeException(String errorCode) throws XspringRuntimeException {   
        super(XspringEnum.getError(errorCode).getMessage());   
        this.code=errorCode;   
    }   
  
    public final String getCode() {   
        return this.code;   
    }   
}  

